<%--
功能: 内容目录multiSelect
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ attribute name="items" type="java.util.List" required="true"
	description="目录的可供选择,需传入list对象"%>
<%-- 注意该multiselect以categoryFullPath为内容，不考虑categoryId--%>
<c:if test="${not empty items}">
	<c:set var="basicDepth" value="${items[0].depth}" />
	<select id="sc_categoryPaths" name="categoryPaths" size="6" multiple="multiple" class="selecttxt" style="width:150px;">
		<option value="${currCategoryPath}" selected="selected"><fmt:message key="catalog.all"/></value>
		<c:forEach items="${items}" var="category" begin="0">
			<option value="${category.categoryPath}" >
			<c:forEach var="i" begin="0" end="${category.depth-basicDepth}">-</c:forEach>
			${category.categoryName}</option> 
		</c:forEach>
	</select>
</c:if>